package me.dwliu.lab.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.dwliu.lab.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户Dao
 *
 * @author liudw
 * @date 2020/6/27 15:05
 **/
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    /**
     * 根据用户名查询用户信息
     *
     * @param username
     * @return
     */
    UserEntity getByUsername(@Param("username") String username);
}
